<div class="divFormFieldLabel" style="position:relative;">{$content.label|htmlentities}</div>
<div class="divFormFieldInput" id="div{$content.fieldname}_{$obj.obj_id}" style="position:relative;">
		<div style="float:left;width:250px;">
		<input type="hidden" name="{$prefix}[{$content.fieldname}]{$suffix}[file]" id="file_{$content.fieldname}_{$obj.obj_id}" value="{$content.file.name}"/>
		<input type="hidden" name="{$prefix}[{$content.fieldname}]{$suffix}[dir]" id="dir_{$content.fieldname}_{$obj.obj_id}" value="{$content.file.dir}"/>

{*			<input type="hidden" name="{$content.fieldname}" id="{$content.fieldname}_{$obj.obj_id}" value="{$content.selected}"/>*}
			Dateiname:<br />
				<a href="javascript:void(0);" onclick="{strip}{literal}
					CMS.FileManager.open({
						{/literal}
						root:'media',
						project_id:'{$project_id}',
						multiple:false,
						type:'image',
						{literal}
						post_params:{
						{/literal}
							open_dir:xajax.$('dir_{$content.fieldname}_{$obj.obj_id}').value
						{literal}
						},
						returnfield:{
						{/literal}
							file : xajax.$('file_{$content.fieldname}_{$obj.obj_id}'),
							dir : xajax.$('dir_{$content.fieldname}_{$obj.obj_id}'),
							label : xajax.$('label_{$content.fieldname}_{$obj.obj_id}'),
							description : xajax.$('description_{$content.fieldname}_{$obj.obj_id}'),
						{literal}
						}
					});
				{/literal}{/strip}">
					<span id="label_{$content.fieldname}_{$obj.obj_id}">
					{if $content.file.name !=""}
						{$content.file.name}
					{else}
						keine Datei gew&auml;hlt
					{/if}
					</span>			
					</a><br /><br />
		</div>
		<div style="float:left;width:250px;">
<!--				&laquo; <a href="javascript:void(0);" onclick="FileManagerOpen('{$content.fieldname}_{$obj.obj_id}','{$content.fieldname}_{$obj.obj_id}','ALL','media');">neue Datei hochladen (DateiManager)</a> &raquo;<br />-->
				&laquo; <a href="javascript:void(0);" onclick="CMS.reset_file('_{$content.fieldname}_{$obj.obj_id}');">Datei entfernen</a> &raquo;<br />
		</div>


		<br style="clear:both;" />
	{if isset($content.default_path)}

			neue Datei hochladen:<br />
			<div style="width:400px;"><input type="input" type="file" name="{$prefix}[{$content.fieldname}]{$suffix}[up]" id="up_{$obj.obj_id}_{$content.fieldname}" /></div>
			<br />
			<input type="button" class="submitbtn" style="width:100px;" value="Datei hochladen" onclick="{strip}
			{literal}
	
				xajax.request(
					{
						ccdsclass:'ccdsContentEditor',
						ccdsfun:'ContentEditorFileUpload'
					},
					{
						parameters:[
							{{/literal}
								obj_id:{$obj.obj_id},
								obj_vers_id:xajax.$('obj_vers_id_{$obj.obj_id}').value,
								filefield:'up_{$obj.obj_id}_{$content.fieldname}',
								fieldname:'{$content.fieldname}'
							{literal}}
						],
						mode:'SWFupload',
						SWFfield:'{/literal}up_{$obj.obj_id}_{$content.fieldname}{literal}',
						context: 
						{ 
							{/literal}
							label:xajax.$('label{$content.fieldname}_{$obj.obj_id}'),
							file:xajax.$('file_{$obj.obj_id}_{$content.fieldname}'),
							dir:xajax.$('dir_{$obj.obj_id}_{$content.fieldname}')
							{literal} 
						}
					}
				);
				{/literal}
			{/strip}" />
	{/if}
	<br style="clear:both;" />
	
</div>
<br style="clear:both;" />
